package com.szamc.tableroundapi.model.RecursionTable;

import lombok.Data;

import java.util.List;

@Data
public class RTGroupData {
    private String id;//格式为R_1_1-C_2_1
    private List<String> Ids;
    private Double sum;
    private Double flootSum;
    private Double decimalPart;//小数部分
    //private Integer level;//从0开始
    private Double adjustSum;
    private List<RTGroupData> children;

    public RTGroupData(String id, List<String> ids, Double sum, List<RTGroupData> children) {
        this.id = id;
        Ids = ids;
        this.sum = sum;
        //this.level = level;
        this.children = children;
    }

    public RTGroupData(String id, List<String> ids) {
        this.id = id;
        Ids = ids;
        //this.level = level;
    }


    public RTGroupData(String id) {
        this.id = id;
    }

    public RTGroupData() {
    }
}
